package com.woniuxy.service;

import com.woniuxy.entity.LoanApproval;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "loanapprovals")
public interface LoanApprovalService {

    /*
    添加
     */
//    @GetMapping("/addLoanApproval")
//    public LoanApproval addApproval(LoanApproval loanApproval);

    /*
   查询全部
    */
    @GetMapping("/loanapprovals/allLoanApproval")
    public List<LoanApproval> selectAllLoanApproval();

    /*
  根据id查询
   */
    @GetMapping("/loanapprovals/loanApprovalById/{id_loan}")
    public LoanApproval selectLoanApprovalById(@PathVariable("id_loan")int id_loan);

    /*
   根据id删除
    */
    @DeleteMapping("/loanapprovals/delete/{id_loan}")
    public void deleteLoanApprovalById(@PathVariable("id_loan")int id_loan);

    /*
  修改状态---即审核通过或不通过
   */
    @PutMapping("/loanapprovals/update/{id_loan}")
    public LoanApproval updateLoanApprovalById(@PathVariable("id_loan")int id_loan);
}
